﻿<%@ Page Title="Hoàng Vũ IT" Language="C#" AutoEventWireup="true" CodeBehind="Cart.aspx.cs" Inherits="VIT.TestWeb.Product.Cart" %>
<%@ Register Assembly="VIT.Web.Controls" Namespace="VIT.Web.Controls" TagPrefix="VIT" %>

<asp:content id="Content1" contentplaceholderid="HeadContent" runat="server">
    <title>Giỏ hàng</title>
    <link href="<%=URLRoot%>Includes/Validation/Validation.css" rel="stylesheet" type="text/css" />
    <script src="<%=URLRoot%>Includes/Validation/ValidationEngine.js" type="text/javascript"></script>
    <script src="<%=URLRoot%>Includes/Validation/Validation.<%=Session["Language"] %>.js" type="text/javascript"></script>
</asp:content>
<asp:content id="Content2" contentplaceholderid="MainContent" runat="server">
    <%--<div style="padding: 0">
        <div class="menu_tab_detail">
            <div class="one_tab_detail">
                <div class="one_tab_detail_left"></div>
                <div class="one_tab_detail_text"><%= GetLocalResourceObject("GioHang")%></div>
                <div class="one_tab_detail_right"></div>
            </div>
        </div>
        <div style="clear: both"></div>
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tbody>
                <tr>
                    <td>
                        <img src="<%=URLTemplatePath  %>Images/Contact/k_t_l.jpg">
                    </td>
                    <td height="6" background="<%=URLTemplatePath  %>Images/Contact/k_bg_t.jpg"></td>
                    <td>
                        <img src="<%=URLTemplatePath  %>Images/Contact/k_t_r.jpg">
                    </td>
                </tr>
                <tr>
                    <td width="6" background="<%=URLTemplatePath  %>Images/Contact/k_bg_l.jpg">
                    </td>
                    <td bgcolor="#FFFFFF" style="padding:10px; text-align:center">

                        <!-- nội dung -->

    <div id="hangtrongGio" runat="server">
    <asp:Repeater ID="rptGioHang" runat="server">
        <HeaderTemplate>
            <table border="1" cellpadding="0" cellspacing="0" style="margin:15px" align="center">
                <tr>
                    <td class="HeadGioHang"><%= GetLocalResourceObject("SanPham")%></td>
                    <td class="HeadGioHang"><%= GetLocalResourceObject("HinhAnh")%></td>
                    <td class="HeadGioHang"><%= GetLocalResourceObject("SoLuong")%></td>
                    <td class="HeadGioHang"><%= GetLocalResourceObject("DonGia")%></td>
                    <td class="HeadGioHang"><%= GetLocalResourceObject("ThanhTien")%></td>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
                <tr>
                    <td style="vertical-align: middle;padding:0px 5px 0px 5px"><%#Eval("ProductName")%></td>
                    <td style="vertical-align: middle;padding:0px 5px 0px 5px"><img alt="" src="<%=URLRoot %>Uploads/Images/Products/Thumbs/<%#Eval("Image") %>" width="75px" /></td>
                    <td style="vertical-align: middle;padding:0px 5px 0px 5px;text-align:center">
                        <VIT:LinkSubmit ID="btnOrderUp" OnClick="updateOrder_Click" CssClass="btn" runat="server" Param='<%#Eval("ProductID")+"|-"%>'><img src="<%=URLRoot %>Admin/Includes/icons/uparrow.png" onclick="ThemVaoGio('<%=URLRoot %>update','<%#Eval("ProductID") %>','1')" /></VIT:LinkSubmit>
                            <span><%#Eval("Quantity")%></span>
                        <VIT:LinkSubmit ID="btnOrderDown" OnClick="updateOrder_Click" CssClass="btn" runat="server" Param='<%#Eval("ProductID")+"|+"%>'><img src="<%=URLRoot %>Admin/Includes/icons/downarrow.png" onclick="ThemVaoGio('<%=URLRoot %>update','<%#Eval("ProductID") %>','0')"/></VIT:LinkSubmit>
                    </td>
                    <td style="vertical-align: middle;padding:0px 5px 0px 5px;text-align:right"><%#string.Format("{0:0,0}", Convert.ToDecimal(Eval("UnitPrice")))%></td>
                    <td style="vertical-align: middle;padding:0px 5px 0px 5px;text-align:right"><%#string.Format("{0:0,0}", Convert.ToDecimal(Eval("TotalCost")))%></td>
                </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    </div>
    
    <asp:Label ID="lblTongTien" runat="server" Text="Tổng thành tiền: " BackColor="#FFE0C0" Font-Bold="True" ForeColor="blue" Width="200px"></asp:Label>
    <asp:Label ID="lblTien" runat="server" Text="" BackColor="#FFE0C0" Font-Bold="True" ForeColor="Red" Width="100px"></asp:Label>
    <div style="margin:10px;text-align:center">
        <img src="<%=URLTemplatePath  %>Images/Product/tieptuc_03.jpg" alt="" style="cursor:pointer" onclick="javascript:history.back();"/>
        &nbsp; &nbsp; &nbsp;
        <img src="<%=URLTemplatePath  %>Images/Product/thanhtoan_05.jpg" alt="" style="cursor:pointer" onclick="javascript:getElementById('divDatHang').style.display='block'"/>
    </div>
    <div id="divDatHang" style="display:none;">
        <h1 style="font-size:18px;color:Maroon;margin-top:20px"><%= GetLocalResourceObject("ChiTietDonHang")%></h1>
        <h2 class="h2DatHang"><%= GetLocalResourceObject("ThongTin")%></h2>
                 
        <table border="0" cellpadding="2" cellspacing="2" style="text-align:center;margin-top:20px; width: 500px;" align="center">
            <tr>
                <td class="hoteDatHang"><%= GetLocalResourceObject("FullName")%>:&nbsp; </td>
                <td class="textDatHang"><asp:TextBox ID="txtHoTen" runat="server" Height="20px" Width="285px" BorderColor="#D6D6D6" Font-Names="Arial" Font-Size="12px" BorderStyle="Solid" CssClass="input_form validate[required,length[5,50]]"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="hoteDatHang"><%= GetLocalResourceObject("Address")%>:&nbsp; </td>
                <td class="textDatHang"><asp:TextBox ID="txtDiaChi" runat="server" Height="20px" Width="285px" BorderColor="#D6D6D6" Font-Names="Arial" Font-Size="12px" BorderStyle="Solid" CssClass="input_form validate[required]"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="hoteDatHang"><%= GetLocalResourceObject("Phone")%>:&nbsp; </td>
                <td class="textDatHang"><asp:TextBox ID="txtDienThoai" runat="server" Height="20px" Width="150px" BorderColor="#D6D6D6" Font-Names="Arial" Font-Size="12px" BorderStyle="Solid" CssClass="input_form validate[required]"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="hoteDatHang"><%= GetLocalResourceObject("Email")%>:&nbsp; </td>
                <td class="textDatHang"><asp:TextBox ID="txtMail" runat="server" Height="20px" Width="285px" BorderColor="#D6D6D6" Font-Names="Arial" Font-Size="12px" BorderStyle="Solid" CssClass="input_form validate[required,custom[email]]"></asp:TextBox></td>
            </tr>    
            <tr>
                <td colspan="2" class="h2DatHang"><%= GetLocalResourceObject("GiaoNhanVaThanhToan")%></td>
            </tr> 
            <tr>
                <td class="hoteDatHang" valign="top"><%= GetLocalResourceObject("PhuongThucGiaoNhan")%>:&nbsp; </td>
                <td class="textDatHang" align="left"> 
                        <asp:RadioButtonList ID="rdbPhuongThuc" runat="server" Width="350%">
                            <asp:ListItem Selected="True">Nhận h&#224;ng trực tiếp từ trung t&#226;m</asp:ListItem>
                            <asp:ListItem>Giao h&#224;ng tại nh&#224;</asp:ListItem>
                        </asp:RadioButtonList>
                </td>
            </tr>   
            <tr>
                <td class="hoteDatHang" valign="top"><%= GetLocalResourceObject("HinhThucThanhToan")%>:&nbsp; </td>
                <td class="textDatHang" align="left"> 
                        <asp:RadioButtonList ID="rdbHinhThuc" runat="server" Width="350%">
                            <asp:ListItem Selected="True">Thanh toán bằng tiền mặt</asp:ListItem>
                            <asp:ListItem>Chuyển khoản qua ngân hàng</asp:ListItem>
                        </asp:RadioButtonList>
                </td>
            </tr>  
            <tr>
                <td colspan="2" style="padding-top:25px;text-align:center">
                    <asp:ImageButton ID="imbHoanTat" runat="server" ImageUrl="Images/Product/ttdathang_03.jpg" OnClick="imbHoanTat_Click" OnClientClick="$('#frmMain').validationEngine();"/>
                </td>
            </tr>
         </table>
        <asp:Label ID="lblScript" runat="server" Text=""></asp:Label>
    </div>
    <!-- hết nội dung -->
                    
                    </td>
                    <td width="6" background="<%=URLTemplatePath  %>Images/Contact/k_bg_r.jpg">
                    </td>
                </tr>
                <tr>
                    <td>
                        <img src="<%=URLTemplatePath  %>Images/Contact/k_b_l.jpg">
                    </td>
                    <td height="6" background="<%=URLTemplatePath  %>Images/Contact/k_bg_b.jpg">
                    </td>
                    <td>
                        <img src="<%=URLTemplatePath  %>Images/Contact/k_b_r.jpg">
                    </td>
                </tr>
            </tbody>
        </table>
    </div>--%>

    <VIT:Skin ID="SkinFlowCenter" runat="server" SkinName="FlowCenter"></VIT:Skin>
    <VIT:Skin ID="SkinHomeCenter" runat="server" SkinName="HomeCenter"></VIT:Skin>
</asp:content>
